package com.hp.bon.sgw.wh.mml.common;

public class MMLConstants {
	
	public static final int VC_CONN_FAIL = -1;
	public static final int VC_CONN_OK = 0;
	public static final int VC_CONN_IDLE = 1;
	
	public static final String KEY_BLANK = " ";
	public static final String KEY_ZERO = "0";
	public static final String KEY_USER = "USER";
	public static final String KEY_PSWD = "PSWD";
	
	public static final int MML_FIX_LEN = 64;//56 + 8;
	
	public static final String MML_DEFAULT_TERM = "00000000";
	
	//public static final String MML_VERSION = "1.00";
	public static final String MML_START_WORD = "`SC`";
	public static final String MML_ACK_START_WORD = "ACK:";
	public static final String MML_LOGIN_OUT_SERVICE_NAME = "SRVM    ";
	public static final String MML_TRANSACTION_SERVICE_NAME = "EVC     ";
	
	
	public static final String MML_EQUALITY = "=";
	public static final String MML_SEPARATOR = ",";
	
	public static final String CAP_RECH_EVC_PPSUSER = "Recharge.Access.mml";
	public static final String CAP_LIST_EVC_TERMUSER = "Auth.Access.mml";
	public static final String CAP_CANCEL_EVC_RECH = "CashRefund.Access.mml";
	public static final String CAP_LIST_EVC_STK = "BlanceQuery.Access.mml";

	public static final String CMD_LOGIN = "LOGIN:";
	public static final String CMD_LOGOUT = "LOGOUT:";
	public static final String CMD_RECH_EVC_PPSUSER = "RECH EVC PPSUSER:";
	public static final String CMD_LIST_EVC_TERMUSER = "LIST EVC TERMUSER:";
	public static final String CMD_CANCEL_EVC_RECH = "CANCEL EVC RECH:";
	public static final String CMD_LIST_EVC_STK = "LIST EVC STK:";
	
	
	public static final String MML_SESSION_LOGIN = "DLGLGN";
	public static final String MML_SESSION_CONNECTION = "DLGCON";
	public static final String MML_SESSION_END = "DLGEND";	
	public static final String MML_SESSION_RETAIN = "    ";
	
	public static final String MML_TRANSACTION_BEGIN = "TXBEG ";
	public static final String MML_TRANSACTION_CONNECTION = "TXCON ";
	public static final String MML_TRANSACTION_END = "TXEND ";	
	public static final String MML_TRANSACTION_RETAIN = "    ";
	
	public static final int MML_SESSION_ID_BEGIN = 36; //28 + 8;
	public static final int MML_SESSION_ID_END = 44; //36 + 8;
	public static final int MML_COMMAND_BEGIN = 72; //64 + 8;
	public static final int MML_CHECK_SUM_LEN = 8;
	public static final int MML_HEART_BEAT_LEN = 20;
	public static final String MML_HEART_BEAT_BODY = "HBHB";
	
}
